Spaces:
Running
Running
Commit
·
834978e
1
Parent(s):
d040a6e
add requiretment
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
def greet(name1, name2, name3, name4, name5):
|
4 |
# Storing each input in a variable, you can process or save them as you like
|
@@ -8,6 +9,13 @@ def greet(name1, name2, name3, name4, name5):
|
|
8 |
str4 = name4
|
9 |
str5 = name5
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# For the purpose of this example, I'm just returning the values concatenated
|
12 |
return f"Inputs received: {str1}, {str2}, {str3}, {str4}, {str5}"
|
13 |
|
|
|
1 |
import gradio as gr
|
2 |
+
import subprocess
|
3 |
|
4 |
def greet(name1, name2, name3, name4, name5):
|
5 |
# Storing each input in a variable, you can process or save them as you like
|
|
|
9 |
str4 = name4
|
10 |
str5 = name5
|
11 |
|
12 |
+
# Construct the command
|
13 |
+
command = f"poetry run runoak set-apikey -e openai {str1}"
|
14 |
+
|
15 |
+
# Execute the command
|
16 |
+
subprocess.run(command, shell=True)
|
17 |
+
|
18 |
+
|
19 |
# For the purpose of this example, I'm just returning the values concatenated
|
20 |
return f"Inputs received: {str1}, {str2}, {str3}, {str4}, {str5}"
|
21 |
|