Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import textgrad as tg
|
| 3 |
|
|
|
|
| 4 |
tg.set_backward_engine("gpt-4o", override=True)
|
| 5 |
|
| 6 |
# Step 1: Get an initial response from an LLM.
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
question_string = ("If it takes 1 hour to dry 25 shirts under the sun, "
|
| 9 |
"how long will it take to dry 30 shirts under the sun? "
|
| 10 |
"Reason step by step")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import textgrad as tg
|
| 3 |
|
| 4 |
+
|
| 5 |
tg.set_backward_engine("gpt-4o", override=True)
|
| 6 |
|
| 7 |
# Step 1: Get an initial response from an LLM.
|
| 8 |
+
engine = tg.get_engine(engine_name='gpt-4o')
|
| 9 |
+
model = tg.BlackboxLLM(engine)
|
| 10 |
+
|
| 11 |
question_string = ("If it takes 1 hour to dry 25 shirts under the sun, "
|
| 12 |
"how long will it take to dry 30 shirts under the sun? "
|
| 13 |
"Reason step by step")
|