Spaces:
Runtime error
Runtime error
Commit
·
5062648
1
Parent(s):
e405859
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
def generate_art(character_dropdown, seed_slider):
|
5 |
|
@@ -65,21 +70,21 @@ HTML_TEMPLATE = """
|
|
65 |
<!-- Content -->
|
66 |
<h1>Shakespeare Dialogue Generator</h1>
|
67 |
<p>Generate new dialogue for Shakespearean character by selecting character from dropdown.</p>
|
68 |
-
|
69 |
<div class="concept">
|
70 |
-
<img src="https://github.com/santule/
|
71 |
<div class="concept-description">Romeo</div>
|
72 |
</div>
|
73 |
<div class="concept">
|
74 |
-
<img src="https://github.com/santule/
|
75 |
<div class="concept-description">Juliet</div>
|
76 |
</div>
|
77 |
<div class="concept">
|
78 |
-
<img src="https://github.com/santule/
|
79 |
<div class="concept-description">Shakespeare</div>
|
80 |
</div>
|
81 |
<div class="concept">
|
82 |
-
<img src="https://github.com/santule/
|
83 |
<div class="concept-description">King Richard III</div>
|
84 |
</div>
|
85 |
</div>
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import torch
|
3 |
+
from torch import nn
|
4 |
+
import lightning.pytorch as pl
|
5 |
+
from torchvision import datasets
|
6 |
+
from torch.nn import functional as F
|
7 |
+
from torch.utils.data import DataLoader, Dataset, random_split
|
8 |
|
9 |
def generate_art(character_dropdown, seed_slider):
|
10 |
|
|
|
70 |
<!-- Content -->
|
71 |
<h1>Shakespeare Dialogue Generator</h1>
|
72 |
<p>Generate new dialogue for Shakespearean character by selecting character from dropdown.</p>
|
73 |
+
<div style="display: flex; justify-content: center; gap: 20px; margin-top: 20px;">
|
74 |
<div class="concept">
|
75 |
+
<img src="https://github.com/santule/ERA/assets/20509836/b6b4031a-265d-43f6-bd59-813097c0022b" alt="Romeo">
|
76 |
<div class="concept-description">Romeo</div>
|
77 |
</div>
|
78 |
<div class="concept">
|
79 |
+
<img src="https://github.com/santule/ERA/assets/20509836/4333692c-54f7-42e4-b53a-14044c8151a3" alt="Juliet">
|
80 |
<div class="concept-description">Juliet</div>
|
81 |
</div>
|
82 |
<div class="concept">
|
83 |
+
<img src="https://github.com/santule/ERA/assets/20509836/7e03233a-bf1d-48aa-b156-46f525aa76c6" alt="Shakespeare">
|
84 |
<div class="concept-description">Shakespeare</div>
|
85 |
</div>
|
86 |
<div class="concept">
|
87 |
+
<img src="https://github.com/santule/ERA/assets/20509836/0dd19c74-72e5-4ea5-8f66-06b7655b81aa" alt="King Richard III">
|
88 |
<div class="concept-description">King Richard III</div>
|
89 |
</div>
|
90 |
</div>
|