Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,27 @@ from typing import List, Tuple
|
|
| 6 |
from uuid import uuid4
|
| 7 |
import time
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# π Set the OpenAI API key from an environment variable
|
| 10 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 11 |
|
|
|
|
| 6 |
from uuid import uuid4
|
| 7 |
import time
|
| 8 |
|
| 9 |
+
# 1. π οΈ Configuration
|
| 10 |
+
Site_Name = 'π Self-Taught Reasoner (STaR) App'
|
| 11 |
+
title = "π€π STaR: Self-Taught Reasoner - Bootstrapping Reasoning With Reasoning"
|
| 12 |
+
helpURL = 'https://arxiv.org/abs/2203.14465'
|
| 13 |
+
bugURL = 'https://arxiv.org/pdf/2203.14465'
|
| 14 |
+
icons = 'ππ€'
|
| 15 |
+
|
| 16 |
+
useConfig = True
|
| 17 |
+
if useConfig:
|
| 18 |
+
st.set_page_config(
|
| 19 |
+
page_title=title,
|
| 20 |
+
page_icon=icons,
|
| 21 |
+
layout="wide",
|
| 22 |
+
initial_sidebar_state="auto",
|
| 23 |
+
menu_items={
|
| 24 |
+
'Get Help': helpURL,
|
| 25 |
+
'Report a bug': bugURL,
|
| 26 |
+
'About': title
|
| 27 |
+
}
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
# π Set the OpenAI API key from an environment variable
|
| 31 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 32 |
|