Spaces:
Moibe
/
Sleeping

Moibe commited on
Commit
1254e4a
1 Parent(s): 9fad8de

Result in txt

Browse files
Files changed (3) hide show
  1. .gitignore +2 -1
  2. app.py +3 -10
  3. requirements.txt +2 -1
.gitignore CHANGED
@@ -1 +1,2 @@
1
- /venv/
 
 
1
+ /venv/
2
+ /__pycache__/
app.py CHANGED
@@ -96,15 +96,6 @@ def inference(img, lang):
96
  for item in result:
97
  print(item)
98
 
99
- time.sleep(8)
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
  print("Resultado de la inferencia: ")
109
  print(result)
110
  img_path = img
@@ -124,6 +115,7 @@ def inference(img, lang):
124
 
125
  print("Detecci贸n de Nombre:")
126
 
 
127
 
128
 
129
  return im_show
@@ -149,7 +141,8 @@ gr.Interface(
149
  gr.Image(type='filepath', label='Input'),
150
  gr.Dropdown(choices=list(LANG_CONFIG.keys()), value='en', label='language')
151
  ],
152
- gr.Image(type='pil', label='Output'),
 
153
  #title=title,
154
  #description=description,
155
  #examples=examples,
 
96
  for item in result:
97
  print(item)
98
 
 
 
 
 
 
 
 
 
 
99
  print("Resultado de la inferencia: ")
100
  print(result)
101
  img_path = img
 
115
 
116
  print("Detecci贸n de Nombre:")
117
 
118
+ return "Hola Gradio"
119
 
120
 
121
  return im_show
 
141
  gr.Image(type='filepath', label='Input'),
142
  gr.Dropdown(choices=list(LANG_CONFIG.keys()), value='en', label='language')
143
  ],
144
+ #gr.Image(type='pil', label='Output'), #Resultado en imagen
145
+ gr.Text(),
146
  #title=title,
147
  #description=description,
148
  #examples=examples,
requirements.txt CHANGED
@@ -2,4 +2,5 @@ Pillow
2
  Gradio
3
  requests
4
  paddlepaddle
5
- paddleocr==2.10.0
 
 
2
  Gradio
3
  requests
4
  paddlepaddle
5
+ paddleocr==2.10.0
6
+ fastapi