Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
365 |
-
title="
|
366 |
-
examples=examples,
|
367 |
-
|
368 |
-
|
369 |
-
|
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
|
|