Abrahamau commited on
Commit
a948a63
·
verified ·
1 Parent(s): b47e444

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -66,6 +66,7 @@ def RunLegalModel(text, model):
66
  pettyfogger = pipeline("text-generation", model=model)
67
  if text is not None:
68
  shoddyadvice = pettyfogger(text)
 
69
  return shoddyadvice[0]['generated_text']
70
 
71
  radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], value="microsoft/resnet-50", label="Select a Classifier", info="Image Classifier")
 
66
  pettyfogger = pipeline("text-generation", model=model)
67
  if text is not None:
68
  shoddyadvice = pettyfogger(text)
69
+ print(shoddyadvice)
70
  return shoddyadvice[0]['generated_text']
71
 
72
  radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], value="microsoft/resnet-50", label="Select a Classifier", info="Image Classifier")