Spaces:
Running
Running
aifeifei798
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,7 @@ def generate_text(
|
|
27 |
top_p,
|
28 |
):
|
29 |
try:
|
30 |
-
in_text = message
|
31 |
-
in_files = message["files"]
|
32 |
-
picoutput = ""
|
33 |
history_prompt = []
|
34 |
# Create system_prompt as a dictionary
|
35 |
system_prompt = {"role": "system", "content": system_message}
|
@@ -67,7 +65,7 @@ def generate_text(
|
|
67 |
|
68 |
demo = gr.ChatInterface(
|
69 |
generate_text,
|
70 |
-
multimodal=
|
71 |
cache_examples=False,
|
72 |
retry_btn=None,
|
73 |
undo_btn="Delete Previous",
|
|
|
27 |
top_p,
|
28 |
):
|
29 |
try:
|
30 |
+
in_text = message
|
|
|
|
|
31 |
history_prompt = []
|
32 |
# Create system_prompt as a dictionary
|
33 |
system_prompt = {"role": "system", "content": system_message}
|
|
|
65 |
|
66 |
demo = gr.ChatInterface(
|
67 |
generate_text,
|
68 |
+
multimodal=False,
|
69 |
cache_examples=False,
|
70 |
retry_btn=None,
|
71 |
undo_btn="Delete Previous",
|