Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def gpt3(texts):
|
|
16 |
top_p=1,
|
17 |
frequency_penalty=0.0,
|
18 |
presence_penalty=0.0,
|
19 |
-
stop = (
|
20 |
)
|
21 |
x = response.choices[0].text
|
22 |
|
@@ -24,7 +24,7 @@ def gpt3(texts):
|
|
24 |
|
25 |
# Function to elicit regex response from model
|
26 |
def greet(prompt):
|
27 |
-
txt= (f'''#---Python Regex Generator--- \n #Prompt: {prompt}\n#Pythonic Regex :\
|
28 |
regex = "re"+gpt3(txt)
|
29 |
return regex
|
30 |
|
|
|
16 |
top_p=1,
|
17 |
frequency_penalty=0.0,
|
18 |
presence_penalty=0.0,
|
19 |
+
stop = ("#", "</code>")
|
20 |
)
|
21 |
x = response.choices[0].text
|
22 |
|
|
|
24 |
|
25 |
# Function to elicit regex response from model
|
26 |
def greet(prompt):
|
27 |
+
txt= (f'''#---Python Regex Generator--- \n #Prompt: {prompt}\n#Pythonic Regex :\n#re''')
|
28 |
regex = "re"+gpt3(txt)
|
29 |
return regex
|
30 |
|