placed command to view what python version space is running
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from threading import Thread
|
|
7 |
from openai import OpenAI
|
8 |
import spaces
|
9 |
import multiprocessing as mp
|
|
|
10 |
|
11 |
# Init ZeroGPU
|
12 |
# spaces.initialize_zero_gpu()
|
@@ -140,6 +141,10 @@ async def bot_comms(input_text: str,
|
|
140 |
global first_time
|
141 |
global llm_mode
|
142 |
|
|
|
|
|
|
|
|
|
143 |
if input_text == "mode":
|
144 |
if llm_mode == "":
|
145 |
yield "The mode is currently at Loki Default mode"
|
|
|
7 |
from openai import OpenAI
|
8 |
import spaces
|
9 |
import multiprocessing as mp
|
10 |
+
import sys
|
11 |
|
12 |
# Init ZeroGPU
|
13 |
# spaces.initialize_zero_gpu()
|
|
|
141 |
global first_time
|
142 |
global llm_mode
|
143 |
|
144 |
+
if input_text == "python":
|
145 |
+
yield f"Sys: {sys.version}"
|
146 |
+
return
|
147 |
+
|
148 |
if input_text == "mode":
|
149 |
if llm_mode == "":
|
150 |
yield "The mode is currently at Loki Default mode"
|