yxmauw commited on
Commit
22f5786
·
1 Parent(s): e103f5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ api = HfApi()
12
  runtime = api.get_space_runtime(repo_id=repo_id)
13
  first_string = runtime.hardware.split("-")[0].upper()
14
  second_string = runtime.hardware.split("-")[1]
15
- space_hardware = " ".join([first_string, second_string])
16
 
17
 
18
  # Construct chatbot
@@ -47,7 +47,7 @@ with gr.Blocks(
47
  # Link the dropdown with the textbox to update the description based on the selected model
48
  model_dropdown.change(fn=llm_intro, inputs=model_dropdown, outputs=explanation)
49
 
50
- gr.Textbox(value=f"\033[1m{space_hardware}\033[0m\n2 vCPU • 16 GB RAM \nFree tier", label="Space Hardware use")
51
 
52
 
53
  with gr.Column(scale=4, elem_id='col'):
 
12
  runtime = api.get_space_runtime(repo_id=repo_id)
13
  first_string = runtime.hardware.split("-")[0].upper()
14
  second_string = runtime.hardware.split("-")[1]
15
+ space_hardware = "\033[1m" + " ".join([first_string, second_string]) + "\033[0m"
16
 
17
 
18
  # Construct chatbot
 
47
  # Link the dropdown with the textbox to update the description based on the selected model
48
  model_dropdown.change(fn=llm_intro, inputs=model_dropdown, outputs=explanation)
49
 
50
+ gr.Textbox(value=f"{space_hardware}\n2 vCPU • 16 GB RAM \nFree tier", label="Space Hardware use")
51
 
52
 
53
  with gr.Column(scale=4, elem_id='col'):