VanYsa commited on
Commit
fe6e529
·
1 Parent(s): d1b2128

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -146,7 +146,7 @@ def bot_response(message: str,
146
  history: list,
147
  temperature: float,
148
  max_new_tokens: int
149
- ) -> str: # type: ignore
150
  """
151
  Generate a streaming response using the llama3-8b model.
152
  Args:
@@ -184,8 +184,9 @@ def bot_response(message: str,
184
  outputs = []
185
  for text in streamer:
186
  outputs.append(text)
187
- print(outputs)
188
- yield "".join(outputs)
 
189
 
190
  with gr.Blocks(
191
  title="MyAlexa",
 
146
  history: list,
147
  temperature: float,
148
  max_new_tokens: int
149
+ )
150
  """
151
  Generate a streaming response using the llama3-8b model.
152
  Args:
 
184
  outputs = []
185
  for text in streamer:
186
  outputs.append(text)
187
+
188
+ return "".join(outputs)
189
+
190
 
191
  with gr.Blocks(
192
  title="MyAlexa",