thepolymerguy commited on
Commit
7de20a0
1 Parent(s): 45ca8af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -1,6 +1,18 @@
1
  import gradio as gr
2
  from tridentmodel import classification
3
  import pandas as pd
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  def add_text(history, text):
6
  history = history + [(text, None)]
 
1
  import gradio as gr
2
  from tridentmodel import classification
3
  import pandas as pd
4
+ import torch
5
+ import torch.nn as nn
6
+ import transformers
7
+ from transformers import AutoTokenizer, AutoConfig, LlamaForCausalLM, LlamaTokenizer, GenerationConfig
8
+
9
+ tokenizer = LlamaTokenizer.from_pretrained("Claimed/capybara")
10
+
11
+ model = LlamaForCausalLM.from_pretrained(
12
+ "Claimed/capybara")
13
+ #model = model.to('cuda')
14
+
15
+
16
 
17
  def add_text(history, text):
18
  history = history + [(text, None)]