Spaces:
Runtime error
Runtime error
Michelangiolo
commited on
Commit
•
d8d720c
1
Parent(s):
dcef704
changes
Browse files
app.py
CHANGED
@@ -32,14 +32,15 @@ def gpt3_endpoint(api_key, prompt):
|
|
32 |
import gradio as gr
|
33 |
|
34 |
#the first module becomes text1, the second module file1
|
35 |
-
def greet(length, name, do, tone
|
36 |
prompt = f"""
|
37 |
Write a {length} with {tone} tone for a startup with the following info:
|
38 |
The name of the startup: {name}
|
39 |
what does the startup do? {do}
|
40 |
-
audience of the pitch: {audience}
|
41 |
-
vision of the startup: {vision}
|
42 |
"""
|
|
|
|
|
|
|
43 |
return gpt3_endpoint(gpt3_key, prompt).replace('\n', ' ').strip()
|
44 |
|
45 |
# iface = gr.Interface(
|
@@ -66,8 +67,8 @@ iface = gr.Interface(
|
|
66 |
gr.Text(headers=["q1"], label="What is the name of your Startup?", value='Goliath AI Consulting'),
|
67 |
gr.Text(headers=["q2"], label="What does your startup do?", value='We build AI Recommendation Systems'),
|
68 |
gr.Radio(["professional", "funny", "innovative", "challenging"], label="Tone", value='innovative'),
|
69 |
-
gr.Radio(["clients", "VCs", "social media"], label="Pitch Audience", value='VCs')
|
70 |
-
gr.Text(headers=["q5"], label="What is the vision of your company?", value='empowering companies with the latest AI')
|
71 |
],
|
72 |
outputs='text'
|
73 |
)
|
|
|
32 |
import gradio as gr
|
33 |
|
34 |
#the first module becomes text1, the second module file1
|
35 |
+
def greet(length, name, do, tone):
|
36 |
prompt = f"""
|
37 |
Write a {length} with {tone} tone for a startup with the following info:
|
38 |
The name of the startup: {name}
|
39 |
what does the startup do? {do}
|
|
|
|
|
40 |
"""
|
41 |
+
# audience of the pitch: {audience}
|
42 |
+
# vision of the startup: {vision}
|
43 |
+
# """
|
44 |
return gpt3_endpoint(gpt3_key, prompt).replace('\n', ' ').strip()
|
45 |
|
46 |
# iface = gr.Interface(
|
|
|
67 |
gr.Text(headers=["q1"], label="What is the name of your Startup?", value='Goliath AI Consulting'),
|
68 |
gr.Text(headers=["q2"], label="What does your startup do?", value='We build AI Recommendation Systems'),
|
69 |
gr.Radio(["professional", "funny", "innovative", "challenging"], label="Tone", value='innovative'),
|
70 |
+
# gr.Radio(["clients", "VCs", "social media"], label="Pitch Audience", value='VCs')
|
71 |
+
# gr.Text(headers=["q5"], label="What is the vision of your company?", value='empowering companies with the latest AI')
|
72 |
],
|
73 |
outputs='text'
|
74 |
)
|