Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,9 @@ from huggingface_hub import HfApi
|
|
10 |
repo_id = "yxmauw/chatbot"
|
11 |
api = HfApi()
|
12 |
runtime = api.get_space_runtime(repo_id=repo_id)
|
13 |
-
|
14 |
-
|
|
|
15 |
space_hardware = " ".join([first_string, second_string])
|
16 |
|
17 |
|
|
|
10 |
repo_id = "yxmauw/chatbot"
|
11 |
api = HfApi()
|
12 |
runtime = api.get_space_runtime(repo_id=repo_id)
|
13 |
+
space_hardware = runtime.hardware
|
14 |
+
first_string = .space_hardware.split("-")[0].upper()
|
15 |
+
second_string = space_hardware.split("-")[1]
|
16 |
space_hardware = " ".join([first_string, second_string])
|
17 |
|
18 |
|