Megatron17 commited on
Commit
bc130b9
1 Parent(s): 67fac86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -33,18 +33,18 @@ user_prompt = UserRolePrompt(USER_PROMPT_TEMPLATE)
33
 
34
  @cl.on_chat_start
35
  async def on_chat_start():
36
- files = None
37
-
38
- # Wait for the user to upload a file
39
- while files == None:
40
- files = await cl.AskFileMessage(
41
- content="Please upload a text file to begin!",
42
- accept=["text/plain"],
43
- max_size_mb=20,
44
- timeout=180,
45
- ).send()
46
-
47
- file = files[0]
48
 
49
  msg = cl.Message(
50
  content=f"Loading Dataset ...", disable_human_feedback=True
 
33
 
34
  @cl.on_chat_start
35
  async def on_chat_start():
36
+ # files = None
37
+
38
+ # # Wait for the user to upload a file
39
+ # while files == None:
40
+ # files = await cl.AskFileMessage(
41
+ # content="Please upload a text file to begin!",
42
+ # accept=["text/plain"],
43
+ # max_size_mb=20,
44
+ # timeout=180,
45
+ # ).send()
46
+
47
+ # file = files[0]
48
 
49
  msg = cl.Message(
50
  content=f"Loading Dataset ...", disable_human_feedback=True