Geek7 commited on
Commit
13a252c
·
verified ·
1 Parent(s): 3c6792a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)