Spaces:
Sleeping
Sleeping
Commit
·
af494f3
1
Parent(s):
24e48ac
update auth
Browse files- .vscode/launch.json +16 -0
- app.py +3 -3
- outputs/professor_guide.csv +3 -5
- poetry.lock +0 -0
- uw_programmatic/base_machine.py +5 -1
- uw_programmatic/uw_machine.py +1 -1
.vscode/launch.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
// Use IntelliSense to learn about possible attributes.
|
3 |
+
// Hover to view descriptions of existing attributes.
|
4 |
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 |
+
"version": "0.2.0",
|
6 |
+
"configurations": [
|
7 |
+
{
|
8 |
+
"name": "Python Debugger: Current File",
|
9 |
+
"type": "debugpy",
|
10 |
+
"request": "launch",
|
11 |
+
"program": "app.py",
|
12 |
+
"console": "integratedTerminal",
|
13 |
+
"env": { "PYTHONPATH": "${workspaceRoot}"}
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
app.py
CHANGED
@@ -124,6 +124,6 @@ with gr.Blocks() as demo:
|
|
124 |
)
|
125 |
|
126 |
load_dotenv()
|
127 |
-
|
128 |
-
|
129 |
-
demo.launch()
|
|
|
124 |
)
|
125 |
|
126 |
load_dotenv()
|
127 |
+
demo.launch(share=True, ssr_mode=False,
|
128 |
+
auth=(os.environ.get('HF_USERNAME',''),os.environ.get('HF_PASSWORD','')))
|
129 |
+
#demo.launch()
|
outputs/professor_guide.csv
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
MC,,1,
|
2 |
-
MC,,1,
|
3 |
-
MC,,1,
|
4 |
-
MC,,1,State the initial step for B2C services companies in their experimentation sequence.,2,B2C services companies start by developing software and tracking usage. ,B2C services companies start by interviewing customers and looking for search volume to determine interest.,B2C services companies start by creating prototypes and gathering feedback. ,B2C services companies start by building products and testing features. ,B2C services companies start by launching ads and analyzing trends. ,98-99, Knowledge
|
5 |
-
MC,,1,Identify the initial step for B2C software companies in their sequence.,2,B2C software companies start by conducting interviews to understand needs. ,B2C software companies start by using customer words in their content to increase conversions.,B2C software companies start by developing prototypes to gather feedback. ,B2C software companies start by launching ads to test market interest. ,B2C software companies start by creating explainer videos to attract users. ,98-99, Knowledge
|
|
|
1 |
+
MC,,1,Identify the main purpose of web traffic analysis as described in the textbook.,3,"The main purpose is to use website data collection, reporting, and analysis to evaluate website design aesthetics. ","The main purpose is to use website data collection, reporting, and analysis to monitor employee internet usage. ","The main purpose is to use website data collection, reporting, and analysis to look for customer behavior patterns.","The main purpose is to use website data collection, reporting, and analysis to track competitor website traffic. ","The main purpose is to use website data collection, reporting, and analysis to identify server performance issues. ",130-133, Knowledge
|
2 |
+
MC,,1,Identify the key steps involved in preparing a Single Feature MVP according to the textbook.,2,"Build a full product, test with competitors, and lose customers.","Design the smallest version, test it internally, and acquire customers.","Develop a prototype, test with friends, and avoid customer acquisition. ","Create the largest version, skip testing, and gather no customers. ","Design a complex version, test externally, and ignore feedback. ",240-243, Knowledge
|
3 |
+
MC,,1,Identify the purpose of a life-sized prototype in product development.,1,A life-sized prototype is used to test higher fidelity solutions with customers before scaling.,A life-sized prototype is used to gather customer email signups for feedback. ,A life-sized prototype is used to test customer willingness to pay. ,A life-sized prototype is used to visualize product specifications clearly. ,A life-sized prototype is used to prioritize features for development. ,254-259, Knowledge
|
|
|
|
poetry.lock
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
uw_programmatic/base_machine.py
CHANGED
@@ -15,6 +15,7 @@ from griptape.configs import Defaults
|
|
15 |
from griptape.configs.drivers import (
|
16 |
OpenAiDriversConfig,
|
17 |
)
|
|
|
18 |
from griptape.drivers import (
|
19 |
GriptapeCloudVectorStoreDriver,
|
20 |
LocalStructureRunDriver,
|
@@ -43,7 +44,10 @@ from statemachine.factory import StateMachineMetaclass
|
|
43 |
from griptape_statemachine.parsers.uw_config_parser import UWConfigParser
|
44 |
|
45 |
logger = logging.getLogger(__name__)
|
46 |
-
|
|
|
|
|
|
|
47 |
|
48 |
if TYPE_CHECKING:
|
49 |
from griptape.structures import Structure
|
|
|
15 |
from griptape.configs.drivers import (
|
16 |
OpenAiDriversConfig,
|
17 |
)
|
18 |
+
from griptape.configs.logging import TruncateLoggingFilter
|
19 |
from griptape.drivers import (
|
20 |
GriptapeCloudVectorStoreDriver,
|
21 |
LocalStructureRunDriver,
|
|
|
44 |
from griptape_statemachine.parsers.uw_config_parser import UWConfigParser
|
45 |
|
46 |
logger = logging.getLogger(__name__)
|
47 |
+
logger.setLevel(logging.ERROR)
|
48 |
+
logger.addFilter(TruncateLoggingFilter(max_log_length=100))
|
49 |
+
logger2 = logging.getLogger(Defaults.logging_config.logger_name).setLevel(logging.ERROR)
|
50 |
+
#logging.getLogger("griptape").setLevel(logging.ERROR)
|
51 |
|
52 |
if TYPE_CHECKING:
|
53 |
from griptape.structures import Structure
|
uw_programmatic/uw_machine.py
CHANGED
@@ -156,7 +156,7 @@ class UWMachine(UWBaseMachine):
|
|
156 |
new_row.append(self.question_list["Taxonomy"])
|
157 |
writer.writerow(new_row)
|
158 |
if self.give_up_count == 3:
|
159 |
-
writer.writerow("Failed to generate more questions.")
|
160 |
self.send("next_state")
|
161 |
|
162 |
def on_event_output_q(self, event_: dict) -> None:
|
|
|
156 |
new_row.append(self.question_list["Taxonomy"])
|
157 |
writer.writerow(new_row)
|
158 |
if self.give_up_count == 3:
|
159 |
+
writer.writerow(["Failed to generate more questions.",])
|
160 |
self.send("next_state")
|
161 |
|
162 |
def on_event_output_q(self, event_: dict) -> None:
|