supernovamutinda commited on
Commit
8a0a2e7
β€’
1 Parent(s): e771190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -2,6 +2,8 @@ import streamlit as st
2
  import time
3
  import pandas as pd
4
  import numpy as np
 
 
5
 
6
  st.set_page_config(page_title="Samuel Portfolio", page_icon="πŸ“ˆ")
7
 
@@ -87,5 +89,12 @@ if choice == "Plotting":
87
  if choice == "Contact":
88
  st.title("You can contact me via:")
89
 
 
 
 
 
 
 
 
90
  if choice == "Attached files":
91
  st.title("Download final project report here")
 
2
  import time
3
  import pandas as pd
4
  import numpy as np
5
+ import torch
6
+ from transformers import pipeline
7
 
8
  st.set_page_config(page_title="Samuel Portfolio", page_icon="πŸ“ˆ")
9
 
 
89
  if choice == "Contact":
90
  st.title("You can contact me via:")
91
 
92
+ torch.manual_seed(0)
93
+ generator = pipeline('text-generation', model = 'gpt2')
94
+ prompt = "Hello, I'm a language model"
95
+
96
+ generator(prompt, max_length = 30)
97
+ st.write(generator)
98
+
99
  if choice == "Attached files":
100
  st.title("Download final project report here")