Karlo Timmerman
commited on
Commit
·
7d181f2
1
Parent(s):
b93c6da
Update app
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
-
import
|
2 |
-
import openai
|
3 |
-
openai.organization = "Sky Dust intelligence b.v."
|
4 |
-
openai.api_key = os.getenv("OPENAI_API_KEY")
|
5 |
-
openai.Model.list()
|
6 |
|
|
|
|
|
7 |
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
5 |
|
6 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
|
8 |
+
demo.launch()
|