davidlopez commited on
Commit
70d23d8
·
verified ·
1 Parent(s): 791233b

Upload apptest.py

Browse files
Files changed (1) hide show
  1. apptest.py +17 -0
apptest.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from openai import OpenAI
2
+ import gradio
3
+ import json
4
+ import os
5
+
6
+ import gradio as gr
7
+
8
+ def greet(name, intensity):
9
+ return "Hello, " + name + "!" * int(intensity)
10
+
11
+ demo = gr.Interface(
12
+ fn=greet,
13
+ inputs=["text", "slider"],
14
+ outputs=["text"],
15
+ )
16
+
17
+ demo.launch()