Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ def greet(text):
|
|
157 |
# print('类别为:{}'.format(classes[predic[0]]))
|
158 |
return classes[predic[0]]
|
159 |
#
|
160 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
161 |
|
162 |
demo.launch()
|
163 |
# with torch.no_grad():
|
|
|
157 |
# print('类别为:{}'.format(classes[predic[0]]))
|
158 |
return classes[predic[0]]
|
159 |
#
|
160 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text",title="text-classification app",icon="👋")
|
161 |
|
162 |
demo.launch()
|
163 |
# with torch.no_grad():
|