Spaces:
Sleeping
Sleeping
MatteoScript
commited on
Commit
•
fb12201
1
Parent(s):
a6058bc
Update app.py
Browse files
app.py
CHANGED
@@ -101,15 +101,6 @@ def chat_box() :
|
|
101 |
st.markdown(message["content"])
|
102 |
|
103 |
def formattaPrompt(prompt, systemRole, systemStyle, instruction):
|
104 |
-
#Attenzione! Il testo generato deve essere lungo {st.session_state.max_tokens*2} CARATTERI
|
105 |
-
if instruction.startswith("http"):
|
106 |
-
try:
|
107 |
-
with st.spinner("Lettura stile da Drive...") :
|
108 |
-
resp = requests.get(instruction)
|
109 |
-
resp.raise_for_status()
|
110 |
-
instruction = resp.text
|
111 |
-
except requests.exceptions.RequestException as e:
|
112 |
-
instruction = ""
|
113 |
input_text = f'''
|
114 |
{{
|
115 |
"input": {{
|
|
|
101 |
st.markdown(message["content"])
|
102 |
|
103 |
def formattaPrompt(prompt, systemRole, systemStyle, instruction):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
input_text = f'''
|
105 |
{{
|
106 |
"input": {{
|