Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
·
a88d533
1
Parent(s):
a7e4964
update the description
Browse files
app.py
CHANGED
@@ -1,20 +1,7 @@
|
|
1 |
import os
|
2 |
-
# import threading
|
3 |
import streamlit as st
|
4 |
from itertools import tee
|
5 |
from model import InferenceBuilder
|
6 |
-
# from chain import ChainBuilder
|
7 |
-
|
8 |
-
# DATABRICKS_HOST = os.environ.get("DATABRICKS_HOST")
|
9 |
-
# DATABRICKS_TOKEN = os.environ.get("DATABRICKS_TOKEN")
|
10 |
-
# remove these secrets from the container
|
11 |
-
# VS_ENDPOINT_NAME = os.environ.get("VS_ENDPOINT_NAME")
|
12 |
-
# VS_INDEX_NAME = os.environ.get("VS_INDEX_NAME")
|
13 |
-
|
14 |
-
# if DATABRICKS_HOST is None:
|
15 |
-
# raise ValueError("DATABRICKS_HOST environment variable must be set")
|
16 |
-
# if DATABRICKS_TOKEN is None:
|
17 |
-
# raise ValueError("DATABRICKS_TOKEN environment variable must be set")
|
18 |
|
19 |
MODEL_AVATAR_URL= "./iphone_robot.png"
|
20 |
MAX_CHAT_TURNS = 10 # limit this for preliminary testing
|
@@ -33,10 +20,11 @@ EXAMPLE_PROMPTS = [
|
|
33 |
TITLE = "CyberSolve LinAlg 1.2"
|
34 |
DESCRIPTION= """Welcome to the CyberSolve LinAlg 1.2 demo! \n
|
35 |
|
36 |
-
**Overview and Usage**: This 🤗 Space is designed to demo the abilities of the CyberSolve LinAlg 1.2 text-to-text language model.
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
|
41 |
**Feedback**: Feedback is welcomed, encouraged, and invaluable! To give feedback in regards to one of the model's responses, click the **Give Feedback on Last Response** button just below
|
42 |
the user input bar. This allows you to provide either positive or negative feedback in regards to the model's most recent response. A **Feedback Form** will appear above the model's title.
|
|
|
1 |
import os
|
|
|
2 |
import streamlit as st
|
3 |
from itertools import tee
|
4 |
from model import InferenceBuilder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
MODEL_AVATAR_URL= "./iphone_robot.png"
|
7 |
MAX_CHAT_TURNS = 10 # limit this for preliminary testing
|
|
|
20 |
TITLE = "CyberSolve LinAlg 1.2"
|
21 |
DESCRIPTION= """Welcome to the CyberSolve LinAlg 1.2 demo! \n
|
22 |
|
23 |
+
**Overview and Usage**: This 🤗 Space is designed to demo the abilities of the **CyberSolve LinAlg 1.2** text-to-text language model. Specifically, the CyberSolve LinAlg 1.* family of models
|
24 |
+
are downstream versions of the 783M parameter FLAN-T5 text-to-text transformer, fine-tuned on the Google DeepMind Mathematics dataset for the purpose of solving linear equations of a single variable.
|
25 |
+
To effectively query the model for its intended task, prompt the model solve an arbitrary linear equation of a single variable with a query of the form: "Solve 24 = 1601*c - 1605*c for c."; the model
|
26 |
+
will return its prediciton in a simple format. The algebraic capabailites far exceed those of the base FLAN-T5 model. CyberSolve LinAlg 1.2 achieves a 90.7 percent exact match benchmark on the DeepMind Mathematics
|
27 |
+
evaluation dataset of 10,000 unique linear equations; the FLAN-T5 base model scores 9.6 percent. On the left is a sidebar of **Examples** that can be clicked to query to model.
|
28 |
|
29 |
**Feedback**: Feedback is welcomed, encouraged, and invaluable! To give feedback in regards to one of the model's responses, click the **Give Feedback on Last Response** button just below
|
30 |
the user input bar. This allows you to provide either positive or negative feedback in regards to the model's most recent response. A **Feedback Form** will appear above the model's title.
|