Spaces:
Sleeping
Sleeping
dtrejopizzo
commited on
Commit
·
6e0d033
1
Parent(s):
022cd08
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import openai
|
|
2 |
import gradio as gr
|
3 |
openai.api_key ='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'
|
4 |
|
5 |
-
def sentence_builder(
|
6 |
-
return f"""Armar itineratio para viajar a {
|
7 |
|
8 |
def openai_chat(prompt):
|
9 |
completions = openai.Completion.create(
|
|
|
2 |
import gradio as gr
|
3 |
openai.api_key ='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'
|
4 |
|
5 |
+
def sentence_builder(donde,dias,quien,actividades):
|
6 |
+
return f"""Armar itineratio para viajar a {donde}, por {dias} dias, con {quien}, tener en cuenta que quiero hacer {" y ".join(actividades)}"""
|
7 |
|
8 |
def openai_chat(prompt):
|
9 |
completions = openai.Completion.create(
|