TejAndrewsACC commited on
Commit
11ff9de
·
verified ·
1 Parent(s): 9524e9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  import os
4
 
 
5
  hf_token = os.getenv("HF_TOKEN").strip()
6
  api_key = os.getenv("HF_KEY").strip()
7
  model_name = os.getenv("Z3TAAGI_ACC").strip()
@@ -16,7 +17,7 @@ def respond(
16
  temperature,
17
  top_p,
18
  ):
19
-
20
  messages = [{"role": "system", "content": system_prompt}]
21
 
22
  for val in history:
 
2
  from huggingface_hub import InferenceClient
3
  import os
4
 
5
+ #Variables
6
  hf_token = os.getenv("HF_TOKEN").strip()
7
  api_key = os.getenv("HF_KEY").strip()
8
  model_name = os.getenv("Z3TAAGI_ACC").strip()
 
17
  temperature,
18
  top_p,
19
  ):
20
+ #Chat stream string setup
21
  messages = [{"role": "system", "content": system_prompt}]
22
 
23
  for val in history: