Update app.py
Browse files
app.py
CHANGED
@@ -56,5 +56,5 @@ def generate_api(model_str, prompt, seed=1):
|
|
56 |
return None
|
57 |
|
58 |
# Launch Gradio API without frontend
|
59 |
-
iface = gr.Interface(fn=generate_api, inputs=["text", "text", "number"], outputs="file")
|
60 |
iface.launch(show_api=True, share=True)
|
|
|
56 |
return None
|
57 |
|
58 |
# Launch Gradio API without frontend
|
59 |
+
iface = gr.Interface(fn=generate_api, inputs=["text", "text", "number"], outputs="file",api_name='predict')
|
60 |
iface.launch(show_api=True, share=True)
|