Alexcruger commited on
Commit
469f3c3
·
1 Parent(s): 0c4aff5

update app commit

Browse files
Files changed (1) hide show
  1. app.py +0 -44
app.py CHANGED
@@ -3,15 +3,10 @@
3
 
4
  # libraries
5
  import datetime
6
- import gc
7
  import json
8
  import os
9
- import pickle
10
  import sys
11
- import urllib.request
12
  import requests
13
- import numpy as np
14
- import pandas as pd
15
  import streamlit as st
16
 
17
 
@@ -129,45 +124,6 @@ if st.button('Check'):
129
  # header
130
  st.header('More information')
131
 
132
- # example texts
133
- with st.expander('Show example texts'):
134
- st.table(pd.DataFrame({
135
- 'Text': ["""AI is already transforming a number of industries, including healthcare, finance, transportation, and retail, among others. Here are a few ways AI is revolutionizing these fields:
136
-
137
- Healthcare: AI is helping medical professionals diagnose diseases and develop new treatments by analyzing vast amounts of medical data. Additionally, AI-powered systems are being developed to assist in surgeries and other medical procedures, leading to improved patient outcomes.
138
-
139
- Finance: AI is helping financial institutions better understand and manage risk, detect fraud, and improve customer service. Machine learning algorithms are used to analyze financial data and make predictions about market trends, helping to inform investment decisions.
140
-
141
- Transportation: AI is playing a major role in the development of autonomous vehicles, which have the potential to revolutionize the way we travel. Additionally, AI-powered logistics systems are helping companies optimize their supply chains, reducing costs and improving delivery times.
142
-
143
- Retail: AI is being used to improve the shopping experience for customers by personalizing product recommendations, optimizing pricing, and streamlining the checkout process. Additionally, AI-powered systems are helping retailers better understand customer behavior, leading to improved inventory management and reduced waste.
144
-
145
- These are just a few examples of how AI is revolutionizing different industries. The potential applications of AI are nearly limitless, and it will continue to play a major role in shaping our future.""",
146
- """The most profitable use of GPT-3 would depend on the specific application and industry in which it is used. Some examples of profitable uses for GPT-3 include:
147
-
148
- Content creation: GPT-3 can generate high-quality, unique content quickly and efficiently, which can be used for blog posts, articles, and other types of written content.
149
-
150
- Chatbots: GPT-3 can be used to build chatbots that can understand and respond to natural language input, which can be used in customer service and other applications where human-like conversation is important.
151
-
152
- Language Translation: GPT-3 can be used to create accurate and efficient language translation models, which can be used in a variety of industries, such as e-commerce, travel, and more.
153
-
154
- Summarization: GPT-3 can be used to summarize large bodies of text, such as news articles or legal documents, making them more manageable for human readers.
155
-
156
- Research and analytics: GPT-3 can be used to extract insights and information from large amounts of unstructured data, such as social media posts or customer feedback.
157
-
158
- Ultimately, the most profitable use of GPT-3 will depend on the specific needs and goals of the organization using it.""",
159
- """Summary: Bayesian optimization tools are a compelling option once we’re done exploring for good search spaces and have decided what hyperparameters even should be tuned at all.
160
-
161
- At some point, our priorities will shift from learning more about the tuning problem to producing a single best configuration to launch or otherwise use.
162
- At this point, there should be a refined search space that comfortably contains the local region around the best observed trial and has been adequately sampled.
163
- Our exploration work should have revealed the most essential hyperparameters to tune (as well as sensible ranges for them) that we can use to construct a search space for a final automated tuning study using as large a tuning budget as possible.
164
- Since we no longer care about maximizing our insight into the tuning problem, many of the advantages of quasi-random search no longer apply and Bayesian optimization tools should be used to automatically find the best hyperparameter configuration.
165
- If the search space contains a non-trivial volume of divergent points (points that get NaN training loss or even training loss many standard deviations worse than the mean), it is important to use black box optimization tools that properly handle trials that diverge (see Bayesian Optimization with Unknown Constraints for an excellent way to deal with this issue).
166
- At this point, we should also consider checking the performance on the test set.
167
- In principle, we could even fold the validation set into the training set and retraining the best configuration found with Bayesian optimization. However, this is only appropriate if there won't be future launches with this specific workload (e.g. a one-time Kaggle competition)."""],
168
- 'Predictions': ['ChatGPT', 'ChatGPT', 'Human'],
169
- }))
170
-
171
  # models
172
  with st.expander('Read about the models'):
173
  st.write(
 
3
 
4
  # libraries
5
  import datetime
 
6
  import json
7
  import os
 
8
  import sys
 
9
  import requests
 
 
10
  import streamlit as st
11
 
12
 
 
124
  # header
125
  st.header('More information')
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  # models
128
  with st.expander('Read about the models'):
129
  st.write(