Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,11 @@ def generate_text(prompt: str):
|
|
49 |
assistant_index = response.find("### Assistant:") + len("### Assistant:")
|
50 |
return response[assistant_index:].strip()
|
51 |
|
52 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
iface.launch()
|
54 |
-
|
|
|
49 |
assistant_index = response.find("### Assistant:") + len("### Assistant:")
|
50 |
return response[assistant_index:].strip()
|
51 |
|
52 |
+
iface = gr.Interface(
|
53 |
+
fn=generate_text,
|
54 |
+
inputs="text",
|
55 |
+
outputs="text",
|
56 |
+
title="Chatbot",
|
57 |
+
description="This app is using this model: https://huggingface.co/TheBloke/stable-vicuna-13B-HF"
|
58 |
+
)
|
59 |
iface.launch()
|
|