Araeynn commited on
Commit
72bece2
1 Parent(s): f737663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -18,14 +18,14 @@ launch_time = datetime.datetime.utcnow()
18
  ph = st.empty()
19
 
20
  def syncMessages():
21
- if os.listdir("data") == []:
22
- return 0
23
  with ph.container():
24
  delta_uptime = datetime.datetime.utcnow() - launch_time
25
  hours, remainder = divmod(int(delta_uptime.total_seconds()), 3600)
26
  minutes, seconds = divmod(remainder, 60)
27
  days, hours = divmod(hours, 24)
28
  st.markdown(f"`[Online Time]: [{days:02d}]d | [{hours:02d}]h | [{minutes:02d}]m | [{seconds:02d}]s`")
 
 
29
  dirs = st.tabs(os.listdir("data"))
30
  i = -1
31
  for dir in os.listdir("data"):
@@ -70,8 +70,9 @@ except:
70
  HF_TOKEN = os.environ["HF_TOKEN"]
71
 
72
  login(HF_TOKEN)
73
-
74
- SD = AsyncInferenceClient(model="dataautogpt3/ProteusV0.2")
 
75
  LLM = AsyncInferenceClient(model="openchat/openchat-3.5-0106")
76
  RF = AsyncInferenceClient(model="stabilityai/stable-diffusion-xl-refiner-1.0")
77
 
@@ -150,7 +151,7 @@ async def on_message(message):
150
  Use the keywords 'best quality, HD, ~*~aesthetic~*~' in your prompt to improve it.
151
  Always include a title.
152
  Do not generate images unless the user speciifes that they want an image.
153
- Talk like the user does,"""
154
  try:
155
  os.mkdir("data/" + guild_name)
156
  except:
 
18
  ph = st.empty()
19
 
20
  def syncMessages():
 
 
21
  with ph.container():
22
  delta_uptime = datetime.datetime.utcnow() - launch_time
23
  hours, remainder = divmod(int(delta_uptime.total_seconds()), 3600)
24
  minutes, seconds = divmod(remainder, 60)
25
  days, hours = divmod(hours, 24)
26
  st.markdown(f"`[Online Time]: [{days:02d}]d | [{hours:02d}]h | [{minutes:02d}]m | [{seconds:02d}]s`")
27
+ if os.listdir("data") == []:
28
+ return 0
29
  dirs = st.tabs(os.listdir("data"))
30
  i = -1
31
  for dir in os.listdir("data"):
 
70
  HF_TOKEN = os.environ["HF_TOKEN"]
71
 
72
  login(HF_TOKEN)
73
+ sd_turbo = "stabilityai/sd-turbo"
74
+ proteus = "dataautogpt3/ProteusV0.2"
75
+ SD = AsyncInferenceClient(model=sd_turbo)
76
  LLM = AsyncInferenceClient(model="openchat/openchat-3.5-0106")
77
  RF = AsyncInferenceClient(model="stabilityai/stable-diffusion-xl-refiner-1.0")
78
 
 
151
  Use the keywords 'best quality, HD, ~*~aesthetic~*~' in your prompt to improve it.
152
  Always include a title.
153
  Do not generate images unless the user speciifes that they want an image.
154
+ Talk like the user does."""
155
  try:
156
  os.mkdir("data/" + guild_name)
157
  except: