Spaces:
Runtime error
Runtime error
adding examples
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from PIL import Image
|
4 |
from lang_list import LANGS
|
5 |
-
print (gr.__version__)
|
6 |
|
7 |
##Image Classification
|
8 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
@@ -38,6 +37,6 @@ with demo:
|
|
38 |
b2 = gr.Button("Translation")
|
39 |
out1 = gr.Textbox()
|
40 |
b2.click(translation, inputs=[text,target], outputs=out1)
|
41 |
-
|
42 |
#examples = gr.Examples(examples=[["003.jpg"]],inputs=[image_file])
|
43 |
demo.launch()
|
|
|
2 |
import gradio as gr
|
3 |
from PIL import Image
|
4 |
from lang_list import LANGS
|
|
|
5 |
|
6 |
##Image Classification
|
7 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
|
|
37 |
b2 = gr.Button("Translation")
|
38 |
out1 = gr.Textbox()
|
39 |
b2.click(translation, inputs=[text,target], outputs=out1)
|
40 |
+
examples = gr.Examples(examples=[["003.jpg"],["126.jpg"],["401.jpg"]],inputs=[image_file])
|
41 |
#examples = gr.Examples(examples=[["003.jpg"]],inputs=[image_file])
|
42 |
demo.launch()
|