Gregor Betz commited on
Commit
5bdee00
1 Parent(s): 07ee5c6
Files changed (3) hide show
  1. .gitignore +2 -0
  2. README.md +1 -1
  3. app.py +3 -3
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .venv
2
+ .mypy_cache
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Guir Chat (Template)
3
  emoji: 🪂
4
  colorFrom: blue
5
  colorTo: purple
 
1
  ---
2
+ title: GuiR Chat Demo (Template)
3
  emoji: 🪂
4
  colorFrom: blue
5
  colorTo: purple
app.py CHANGED
@@ -198,13 +198,13 @@ async def bot(
198
  progress_step = 0
199
  async for otype, ovalue in guide.guide(message):
200
  logging.getLogger(__name__).debug(f"Guide output: {otype.value} - {ovalue}")
201
- if otype == "progress":
202
  print(f"Progress: {ovalue}")
203
- gr.Info(ovalue, duration=12)
204
  progress((progress_step,4))
205
  progress_step += 1
206
  elif otype is not None:
207
- artifacts[otype] = ovalue
208
  else:
209
  break
210
  except asyncio.TimeoutError:
 
198
  progress_step = 0
199
  async for otype, ovalue in guide.guide(message):
200
  logging.getLogger(__name__).debug(f"Guide output: {otype.value} - {ovalue}")
201
+ if otype.value == "progress":
202
  print(f"Progress: {ovalue}")
203
+ gr.Info(otype.value, duration=12)
204
  progress((progress_step,4))
205
  progress_step += 1
206
  elif otype is not None:
207
+ artifacts[otype.value] = ovalue
208
  else:
209
  break
210
  except asyncio.TimeoutError: