hectorjelly commited on
Commit
888a97c
·
1 Parent(s): bc6719b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import wandb
10
  WANDB_API_KEY = "97a45c27a4ead60eb8eff145c37ec8c39cf2fe63"
11
 
12
  wandb.login(key="97a45c27a4ead60eb8eff145c37ec8c39cf2fe63")
13
- wandb.init(project="Joe 0.1", job_type= "generation")
14
 
15
  # Load environment variables from .env file
16
  load_dotenv()
@@ -99,6 +99,13 @@ with gr.Blocks() as demo:
99
 
100
  # Dropdown menu for selecting the model
101
  model_choice = gr.Dropdown(label="Model Options", choices=['gpt-3.5-turbo', 'gpt-4'])
 
 
 
 
 
 
 
102
 
103
  # Button to clear the chat history and restart
104
  clear_btn = gr.Button("Clear for Restart")
 
10
  WANDB_API_KEY = "97a45c27a4ead60eb8eff145c37ec8c39cf2fe63"
11
 
12
  wandb.login(key="97a45c27a4ead60eb8eff145c37ec8c39cf2fe63")
13
+
14
 
15
  # Load environment variables from .env file
16
  load_dotenv()
 
99
 
100
  # Dropdown menu for selecting the model
101
  model_choice = gr.Dropdown(label="Model Options", choices=['gpt-3.5-turbo', 'gpt-4'])
102
+
103
+
104
+ # Textbox for user's name
105
+ user_name = gr.Textbox(label="Your Name", value="", placeholder="Enter your name here...")
106
+ wandb.init(project="Joe 0.1", job_type= "generation", user_name)
107
+
108
+
109
 
110
  # Button to clear the chat history and restart
111
  clear_btn = gr.Button("Clear for Restart")