acecalisto3 commited on
Commit
585fd7b
1 Parent(s): 156e03b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -358,13 +358,12 @@ examples=[["Based on previous interactions, generate an interactive preview of t
358
  ["Gather feedback from the user about the demo and potential improvements.", None, None, None, None, None,],
359
  ["If the user approves of the app's running state you should provide a bash script that will automate all aspects of a local run and also a docker image for ease-of-launch in addition to the huggingface-ready app.py with all functions and gui and the requirements.txt file comprised of all required libraries and packages the application is dependent on, avoiding openai api at all points as we only use huggingface transformers, models, agents, libraries, api.", None, None, None, None, None,],
360
  ]
361
-
362
-
363
- gr.ChatInterface(
364
- fn=run,
365
- title="""Fragmixt\nAgents With Agents,\nSurf With a Purpose""",
366
- examples=examples,
367
- concurrency_limit=20,
368
- with gr.Blocks() as iface:
369
- iface.launch()
370
- )
 
358
  ["Gather feedback from the user about the demo and potential improvements.", None, None, None, None, None,],
359
  ["If the user approves of the app's running state you should provide a bash script that will automate all aspects of a local run and also a docker image for ease-of-launch in addition to the huggingface-ready app.py with all functions and gui and the requirements.txt file comprised of all required libraries and packages the application is dependent on, avoiding openai api at all points as we only use huggingface transformers, models, agents, libraries, api.", None, None, None, None, None,],
360
  ]
361
+ def create_interface():
362
+ with gr.Blocks() as iface:
363
+ gr.ChatInterface(
364
+ fn=generate,
365
+ title="Fragmixt\nAgents With Agents,\nSurf With a Purpose",
366
+ examples=examples,
367
+ additional_inputs=additional_inputs,
368
+ )
369
+ return iface