lordspline commited on
Commit
80287f4
1 Parent(s): 458e2d8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,8 +15,8 @@ devon = None
15
 
16
 
17
  def add_message(history, message):
18
- for x in message["files"]:
19
- history.append(((x,), None))
20
  if message["text"] is not None:
21
  history.append((message["text"], None))
22
  return history, gr.MultimodalTextbox(value=None, interactive=False)
@@ -102,7 +102,7 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
102
  "text": "benchmark the perplexity api's resposne time with the api key abcdef"
103
  },
104
  interactive=True,
105
- file_types=["image"],
106
  placeholder="Enter message or upload file...",
107
  show_label=False,
108
  )
 
15
 
16
 
17
  def add_message(history, message):
18
+ # for x in message["files"]:
19
+ # history.append(((x,), None))
20
  if message["text"] is not None:
21
  history.append((message["text"], None))
22
  return history, gr.MultimodalTextbox(value=None, interactive=False)
 
102
  "text": "benchmark the perplexity api's resposne time with the api key abcdef"
103
  },
104
  interactive=True,
105
+ file_types=["text"],
106
  placeholder="Enter message or upload file...",
107
  show_label=False,
108
  )