Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
pipe = pipeline("image-classification")
|
| 4 |
-
gr.Interface.from_pipeline(pipe).launch()
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#import gradio as gr
|
| 2 |
+
#from transformers import pipeline
|
| 3 |
+
#pipe = pipeline("image-classification")
|
| 4 |
+
#gr.Interface.from_pipeline(pipe).launch()
|
| 5 |
+
demo = gr.Interface(image_generator, gr.Textbox(), gr.Image())
|
| 6 |
+
demo.queue(max_size=20)
|
| 7 |
+
demo.launch()
|