kateforsberg commited on
Commit
af494f3
·
1 Parent(s): 24e48ac

update auth

Browse files
.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
- # demo.launch(share=True, ssr_mode=False,
128
- # auth=(os.environ.get('HF_USERNAME',''),os.environ.get('HF_PASSWORD','')))
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,List the three questions to ask during the validation phase of experiments.,2,1. What evidence is required? 2. How much information is outdated? 3. How much time until resources are scarce? ,1. What type of hypothesis are you testing? 2. How much evidence do you already have? 3. How much time until the next decision point or money runs out?,1. What hypothesis needs validation? 2. How much proof is missing? 3. How much time until the deadline arrives? ,1. What kind of results are expected? 2. How much support do you lack? 3. How much time until funds are exhausted? ,1. What is the goal of your experiment? 2. How much data is irrelevant? 3. How long until resources are depleted? ,96-97, Knowledge
2
- MC,,1,State the recommended approach when starting experiments with high uncertainty.,5,Go expensive and quick with comprehensive tests to ensure accuracy. ,Go cheap and slow with thorough analysis to validate assumptions. ,Go fast and costly with large projects to confirm ideas. ,Go expensive and slow with detailed studies to find direction. ,Go cheap and fast with quick experiments to pinpoint the right direction.,91-93, Knowledge
3
- MC,,1,List the three questions to ask when selecting an experiment.,2,1. What type of project are you managing? 2. How many stakeholders are involved? 3. How much risk can you tolerate? ,1. What type of hypothesis are you testing? 2. How much evidence do you already have? 3. How much time do you have until the next major decision point?,1. What type of analysis are you performing? 2. How many resources are available? 3. How much support do you require? ,1. What type of results are you expecting? 2. How many variables are involved? 3. How much feedback have you received? ,1. What type of data are you collecting? 2. How many tests have you conducted? 3. How much funding do you have left? ,94-95, Knowledge
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
- logging.getLogger("griptape").setLevel(logging.ERROR)
 
 
 
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: