HemanM commited on
Commit
6c2267b
·
verified ·
1 Parent(s): 19ba196

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from logger import log_feedback_to_firebase
4
  import openai
5
  import os
6
 
7
- openai.api_key = os.environ["OPENAI_API_KEY"] # Add this secret in HF Space
8
 
9
  def gpt_predict(goal, sol1, sol2):
10
  prompt = f"You're solving a commonsense reasoning problem. Choose the better solution to achieve the goal.\n\nGoal: {goal}\n\nOption 1: {sol1}\nOption 2: {sol2}\n\nWhich option is better? Reply with only 'Solution 1' or 'Solution 2'."
@@ -45,6 +45,9 @@ with gr.Blocks() as demo:
45
  "> 13M Parameters • Fully Scratch-Trained • Leans Smart\n"
46
  "> 🧪 *Note: EvoTransformer is a scratch-built model trained on 1K PIQA examples. It may occasionally misinterpret context or idioms. That’s part of its evolution.*"
47
  )
 
 
 
48
 
49
  with gr.Row():
50
  goal = gr.Text(label="Goal")
 
4
  import openai
5
  import os
6
 
7
+ openai.api_key = os.environ["OPENAI_API_KEY"] # Add this secret in your Hugging Face Space
8
 
9
  def gpt_predict(goal, sol1, sol2):
10
  prompt = f"You're solving a commonsense reasoning problem. Choose the better solution to achieve the goal.\n\nGoal: {goal}\n\nOption 1: {sol1}\nOption 2: {sol2}\n\nWhich option is better? Reply with only 'Solution 1' or 'Solution 2'."
 
45
  "> 13M Parameters • Fully Scratch-Trained • Leans Smart\n"
46
  "> 🧪 *Note: EvoTransformer is a scratch-built model trained on 1K PIQA examples. It may occasionally misinterpret context or idioms. That’s part of its evolution.*"
47
  )
48
+ gr.Markdown(
49
+ "> 🔄 *EvoTransformer is not static. Every time you provide feedback, Evo learns and evolves. Welcome to real-time neural evolution.*"
50
+ )
51
 
52
  with gr.Row():
53
  goal = gr.Text(label="Goal")